Image pickup apparatus

ABSTRACT

An image pickup apparatus includes: an image pickup element having a plurality of pixels; a drive unit moving the image pickup element; a defective position storage unit storing position data on the image pickup element about a defective pixel contained in the plurality of pixels; an image extraction unit extracting a moving picture regeneration area depending on the position of the image pickup element during capturing an image from a captured image obtained by the image pickup element; and a defect correction unit complementing a defective pixel of a captured image obtained by the image pickup element using image data of captured image obtained by the image pickup element in another position. Moving pictures are formed by continuously outputting captured images in the moving picture regeneration area for which the defect correction unit has complemented the defective pixel.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a divisional of U.S. Pat. application Ser. No.11/483,327 (referred to as “the '327 application” and incorporatedherein by reference), filed on Jul. 7, 2006, titled “IMAGE PICKUPAPPARATUS CORRECTING FOR DEFECTIVE PIXELS OF AN IMAGE PICKUP ELEMENT”(as amended on Sep. 3, 2009) and listing Shinya SAKAMOTO, Yasutada MIURAand Hitoshi UEDA, as the inventors, which is based upon and claims thebenefit of priority from the prior Japanese Patent Application No.2005-202564, filed Jul. 12, 2005. The entire contents of the '327application and the foregoing Japanese patent application areincorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an image pickup apparatus capable ofrecording moving pictures such as a digital camera, a digital videocamera, etc.

2. Description of the Related Art

Recently, an image pickup element including photoreception elements in amatrix form is used for recording moving pictures. Each photoreceptionelement is called a pixel, and each pixel can independently receive anoptical signal. Therefore, by leading a reflected light from a target toan image pickup element, an optical signal corresponding to a target isobtained from each pixel, and converted into and formed as imageinformation. The moving pictures are formed by continuously fetching theimage information at predetermined time intervals and joining apreceding image to a subsequent image. Therefore, it is desired toobtain moving pictures which have a high frame rate and can correctlyregenerate the motion of a target.

The Japanese Patent Application Laid-open No. 2003-156565 describes amethod of acquiring again an image at a defective position using normalpixels around a defective pixel by moving the image pickup element andtwice capturing an image, thereby complementing a signal.

SUMMARY OF THE INVENTION

The image pickup apparatus according to an aspect of the presentinvention includes: an image pickup element having a plurality ofpixels; a drive unit for moving the image pickup element; a defectiveposition storage unit storing position data on the image pickup elementabout a defective pixel contained in the plurality of pixels; an imageextraction unit for extracting a moving picture regeneration areadepending on the position of the image pickup element during capturingan image from a captured image obtained by the image pickup element; anda defect correction unit for complementing a defective pixel of acaptured image obtained by the image pickup element using image data ofcaptured image obtained by the image pickup element in another positionWith the configuration, moving pictures are formed by continuouslyoutputting captured images in the moving picture regeneration area forwhich the defect correction unit complemented the defective pixel.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of the basic configuration of the image pickupapparatus according to an embodiment 1;

FIG. 2 shows x-axis and y-axis of the coordinates system used when eachpixel position of an image pickup element is expressed;

FIG. 3 shows an image pickup area and a moving picture regeneration areawhen an image pickup element is moved;

FIG. 4 shows the position of a defective pixel when an image pickupelement is moved in the embodiment 1;

FIG. 5 is a flowchart of the image acquiring process performed duringshooting moving pictures by the image pickup apparatus according to theembodiment 1;

FIG. 6 is a flowchart of the image processing performed during shootingmoving pictures by the image pickup apparatus according to theembodiment 1;

FIG. 7 is a block diagram of the basic configuration of the image pickupapparatus according to an embodiment 2;

FIG. 8 shows the position of a defective pixel when an image pickupelement is moved in the embodiment 2;

FIG. 9 is a flowchart of the image acquiring process performed duringshooting moving pictures by the image pickup apparatus according to theembodiment 2;

FIG. 10 is a flowchart of the image processing performed during shootingmoving pictures according to the embodiment 2;

FIG. 11 is a block diagram of the basic configuration of the imagepickup apparatus according to an embodiment 3;

FIG. 12 is a flowchart of the process of determining the optimum drivedirection of an image pickup element performed by the image pickupapparatus according to the embodiment 3; and

FIG. 13 is a flowchart of the process of determining the optimum drivedirection of an image pickup element performed by the image pickupapparatus according to the embodiment 3.

DESCRIPTION OF THE PREFERRED EMBODIMENT

The embodiments of the present invention are explained below byreferring to the attached drawings.

Embodiment 1

FIGS. 1 to 6 are explanatory views of the present embodiment.

FIG. 1 is a block diagram of the basic configuration of the image pickupapparatus according to the present embodiment. FIG. 2 shows x-axis andy-axis of the coordinates system used when each pixel position of animage pickup element is expressed. FIG. 3 shows an image pickup area anda moving picture regeneration area when an image pickup element ismoved. FIG. 4 shows the position of a defective pixel when an imagepickup element is moved. FIG. 5 is a flowchart of the image acquiringprocess performed during shooting moving pictures by the image pickupapparatus according to the present embodiment. FIG. 6 is a flowchart ofthe image processing performed during shooting moving pictures by theimage pickup apparatus.

First, the central configuration of the image pickup apparatus accordingto the present embodiment is explained below by referring to FIG. 1.

In FIG. 1, an image pickup element 1 is formed by a plurality of pixels.An A/D converter 2 converts an analog image signal obtained by the imagepickup element 1 into a digital image signal (digitized image data).Cache memory 3 temporarily accumulates digitized image data. A signalprocessing unit 4 performs various image processes. Memory 5 storescompleted image data (for example, moving pictures data). A monitor 6outputs image data (for example, moving pictures data).

The signal processing unit 4 includes a data extraction unit 4 a, adefective position storage unit 4 b, and a defect correction unit 4 c.The defective position storage unit 4 b stores in advance the positiondata of the defect of a pixel in the image pickup element 1 obtained atthe shipment from the factory or during the calibration of a camera. Thedata extraction unit 4 a serially reads image data stored in the cachememory 3, extracts the image data in the moving picture regenerationarea, and extracts the image data at a specific position specified bythe defective position storage unit 4 b as a defect correction value(complement data). The defect correction unit 4 c complements the imagedata of a defective pixel in the image data in the moving pictureregeneration area using a defect correction value based on the positiondata of the defect of a pixel stored in the defective position storageunit 4 b, and the image data in the moving picture regeneration area andthe defect correction value extracted by the data extraction unit 4 a,thereby correcting the image data in the moving picture regenerationarea. The corrected image data obtained from the defect correction unit4 c is stored in the memory 5. The corrected image data can also beoutput by the monitor 6.

An image pickup element drive unit 7 includes an actuator 7 a capable ofmoving the image pickup element 1 in the direction along the x-axis(hereinafter referred to as an “X direction”), and an actuator 7 bcapable of moving the image pickup element 1 in the direction along they-axis (hereinafter referred to as an “Y direction”). The x-axis and they-axis are indicated as arrows in FIG. 2.

A CPU 8 integrally controls the image pickup element drive unit 7, theimage pickup element 1, and the signal processing unit 4 by reading andexecuting a control program stored in ROM 9, and controls the entireoperation of the image pickup apparatus.

An operation unit 10 can be operated by a user when an image acquiringprocess is performed, and can transmit the timing of starting andterminating the acquisition of a desired image.

Explained below is the operation performed by the image pickup apparatuswith the above-mentioned configuration while shooting moving pictures.

In the apparatus, the image pickup element 1 moves between the normalposition and the predetermined position alternately during shootingmoving pictures, and obtaining an image by the image pickup element 1 inthe normal position and obtaining an image by the image pickup element 1in the predetermined position are repeated alternately. In thisembodiment, the predetermined position is explained as the positionobtained by moving the image pickup element 1 one pixel in the +Xdirection from the normal position.

First, by referring to FIGS. 3 and 4, the details of obtaining an imageare explained below.

In FIG. 3, the area encompassed by the solid lines indicates an imagepickup area of an image pickup element before moving the image pickupelement (“before shifting the pixel”), and the area encompassed by thedotted lines indicates an image pickup area on the image pickup elementafter moving the image pickup element (“after shifting the pixel”). InFIG. 3, the position of the image pickup element before moving the imagepickup element is defined as a normal position, and the position of theimage pickup element after moving the image pickup element is defined asabove predetermined position. Thus, since the image pickup areas of atarget are naturally different between before and after moving the imagepickup element 1, the overlaps (indicated by the diagonal lines in FIG.3) in the image pickup area before and after moving the image pickupelement 1 are defined as a moving picture regeneration area.

FIG. 4 shows up and down the image pickup areas on the image pickupelement before and after moving the image pickup element 1 with theposition in the X direction associated with each other. As shown in FIG.4, by moving the image pickup element 1, the defective pixel Q1positioned at the coordinates (x, y) on the image pickup element beforemoving the image pickup element is moved to the defective pixel Q2positioned at the coordinates (x, y) on the image pickup element aftermoving the image pickup element. Thus, the relative positions of thedefective pixel on the image pickup element are not different before andafter the movement of the image pickup element 1, but the absoluteposition of the specific portion of the target is moved. Based on thepositional relationship, the image data of the target to be obtained bythe defective pixel Q1 can be obtained by the pixel P2 (x−1, y) on theimage pickup element after the movement, and the image data of thetarget to be obtained by the defective pixel Q2 can be obtained by thepixel P1 (x+1, y) on the image pickup element before the movement.

In this operation, an undesired influence of a defective pixel on animage can be eliminated by complementing, in two images before and aftera movement, the image data of a defective pixel in an image using theimage data of a corresponding pixel of another image.

Using the flowchart in FIGS. 5 and 6, the operation during shootingmoving pictures is explained below in detail. In this explanation, justfor convenience, an image obtained in the image pickup area of the imagepickup element 1 in a normal position is defined as an image A, and animage obtained in the image pickup area of the image pickup element 1 ina predetermined position (position of one pixel movement in the +Xdirection) is defined as an image B.

First, by referring to FIG. 5, the image acquiring process performedduring the operation is explained below in detail.

As shown in FIG. 5, when the shooting process is started in thisoperation, the CPU 8 transmits a drive timing signal to the image pickupelement 1 and the image pickup element drive unit 7, and the imageacquisition control is started at the following predetermined framerate.

First, the image A is acquired, and the acquired image data is stored inthe cache memory 3 (step (hereinafter referred to simply as “S”) 1).Then, the image pickup element 1 is one pixel moved in the +X directionby the actuator 7 a (S2). Thus, the image pickup element 1 moves to thepredetermined position.

Then, the actuator 7 a acquires the image B, and stores it in the cachememory 3 (S3). Then, the actuator 7 a moves the image pickup element 1one pixel in the −X direction, thereby returning it to the originalposition (normal position) (S4).

Then, it is determined whether or not the CPU 8 has accepted an imageacquisition termination request from the operation unit 10 (S5). If thedetermination result is YES, it is determined that the acquisition ofthe image has terminated, thereby terminating the image acquiringprocess.

If the determination is NO, the acquisition of the image is continued.In S6 and S7, the processes similar to those in S1 and S2. In S8, theprocess similar to that in S5 is performed. If the determination in S8is NO, control is returned to S3. If YES, the image acquiring processterminates.

As described above, in the operation, the acquisition of an image by theimage pickup element 1 in the normal position and the acquisition of animage by the image pickup element 1 in the predetermined are alternatelyrepeated until an image acquisition termination request is received.

Then, by referring to FIG. 6, the image processing performed in thisoperation is explained below in detail. As shown in FIG. 6, when theimage data of the image A is stored in the cache memory 3 in the processin S1 shown in FIG. 5, the data extraction unit 4 a acquires the imagedata of the image A from the cache memory 3 (S11), and extracts anmoving picture regeneration area (refer to FIG. 3) from the image dataof the image A (S12).

Then, the data extraction unit 4 a acquires from the cache memory 3 theimage data of the image B (for example, the image data of the image Bstored in the cache memory 3 in the process in S3 shown in FIG. 5)stored in the cache memory 3 after the image data of the image Aacquired in S11 (S13), extracts the moving picture regeneration areafrom the image data of the image B (S14), refers to the position data ofthe defect of the pixel stored in the defective position storage unit 4b, and extracts the image data of the corresponding pixel (refer to thepixel P2 shown in FIG. 4) of the image B obtained in S13 as thecomplement data of the defective pixel position (refer to the pixel Q1shown in FIG. 4) of the image A extracted in S12 (S16). After S16, thedefect correction unit 4 c complements the image data of the defectivepixel of the image A extracted in S12 using the complement dataextracted in S16, thereby correcting the defect of the image A (S17).Then, the corrected image A is transferred to the memory 5.

On the other hand, the data extraction unit 4 a separately continues theprocess. After the process in S14, the data extraction unit 4 a acquiresfrom the cache memory 3 the image data of the image A stored in thecache memory 3 after the image data of the image B acquired in S13(S15). Then, it refers to the position data of the pixel defect storedin the defective position storage unit 4 b, and extracts the image dataof the corresponding pixel (refer to the pixel P1 shown in FIG. 4) ofthe image A acquired in S15 as the complement data of the defectivepixel position (refer to pixel Q2 shown in FIG. 4) of the image Bextracted in S14 (S18). After S18, the defect correction unit 4 c thencorrects the defect of the image B by complementing the image data ofthe defective pixel of the image B extracted in S14 using the complementdata extracted in S18 (S19). The corrected image B is transferred to thememory 5.

On the other hand, the data extraction unit 4 a separately continues theprocess. After the process in S15, control is returned to S12. Theabove-mentioned process is repeated until there is no image dataacquired from the cache memory 3 In S13 or S15. Thus, the correctedimages A and B are alternately and continuously transferred to thememory 5, thereby forming moving pictures.

Thus, by performing the image processing, defective pixel Q1 in theimage A can be complemented by the normal pixel P2 in the image B, andthe defective pixel Q2 in the image B can be complemented using thenormal pixel P1 in the image A. Therefore, an image having a very smallcomplement error can be regenerated.

Although an image pickup area is changed by the movement of the imagepickup element 1, the same portion can be constantly regenerated bysetting a moving picture regeneration area. Therefore, data can beobtained for each frame for the pixel other than a defective pixel, andmoving pictures can be shot without reducing the frame rate.

As described above, according to the present embodiment, when movingpictures are shot using an image pickup element having a pixel defect,an image having a very small influence of a pixel defect can be acquiredwhile maintaining appropriate frame rate. Thus, the optimum movingpictures with both appropriate frame rate and image quality maintainedcan be acquired.

In this embodiment, the image pickup element 1 is moved by one pixel,but it can also be moved by an integral multiple of a pixel.

Furthermore, according to this embodiment, the moving direction of theimage pickup element 1 from the normal position to a predeterminedposition is the +X direction, but the direction can also be any of the 8directions around the pixel. In this case, the presence/absence of anadjacent defective pixel is checked for a defective pixel detected inadvance, and the moving direction can be determined as a directionhaving no overlap of the adjacent defective pixel or having the smallestoverlap can be determined. Thus, the moving direction can be optimizedfor each image pickup element although a pixel defect can be generatedin any pattern. Therefore, the possibility of a remaining pixel defect(possibility that a defective pixel is complemented by a defectivepixel) can be minimized. The method of determining the moving directionof an image pickup element is explained in detail by referring to theembodiment 3.

In the present embodiment, the moving direction and the amount ofmovement of the image pickup element 1 from the normal position to thepredetermined position is fixed to one pixel in the +X direction.However, the moving direction and the amount of movement can also beoptionally selected by a user.

Embodiment 2

The present embodiment has a further function for higher resolution byshifting a pixel (moving the image pickup element) as compared with theembodiment 1.

When a pixel is shifted, an image can be captured for a portion of atarget between pixels. Therefore, by acquiring images before and aftershifting a pixel and composing an image, an image having an effect ofmultiplying the number of pixels can be obtained. That is, an image ofhigher resolution can be obtained.

FIGS. 7 to 10 are explanatory views of the present embodiment.

FIG. 7 is a block diagram of the basic configuration of the image pickupapparatus according to the present embodiment. FIG. 8 shows the positionof a defective pixel when an image pickup element is moved. FIG. 9 is aflowchart of the image acquiring process performed during shootingmoving pictures by the image pickup apparatus according to the presentembodiment. FIG. 10 is a flowchart of the image processing performedduring shooting moving pictures.

First, the main configuration of the image pickup apparatus according tothe present embodiment is explained below by referring to FIG. 7. InFIG. 7, the same components as in FIG. 1 are assigned the same referencenumerals.

As shown in FIG. 7, the different point from the configuration of theimage pickup apparatus shown in FIG. 1 is that the signal processingunit 4 includes an image composition unit 4 d further. The imagecomposition unit 4 d is provided among the defect correction unit 4 c,the memory 5, and the monitor 6, combines a plurality of imagescorrected by the defect correction unit 4 c, and forms a large image(composite image). The composite image is stored as one frame in thememory 5 or output to the monitor 6.

Next, the operation performed by the image pickup apparatus with theabove-mentioned configuration during shooting moving pictures isexplained below.

In this apparatus, the image pickup element 1 sequentially moves amongthe normal position, the first predetermined position, the secondpredetermined position, and the third predetermined position, andsequentially repeats the acquisition of an image at each position. Inthe present embodiment, the predetermined positions can be: the firstpredetermined position obtained by moving the image pickup element 1 by0.5 pixel in the +Y direction from the normal position; the secondpredetermined position obtained by moving the image pickup element 1 by1 pixel in the +X direction from the normal position; and the thirdpredetermined position obtained by moving the image pickup element 1 by1 pixel in the +X direction and by 0.5 pixel in the +Y direction fromthe normal position. The second predetermined position is the same asthe predetermined position explained by referring to the embodiment 1.

First, by referring to FIG. 8, the acquisition of an image as describedabove is explained below in detail. Also in the present embodiment, theoverlap in the image pickup area at each position of the image pickupelement 1 is defined as a moving picture regeneration area.

FIG. 8 shows the image pickup areas on the image pickup element at thenormal position and the first predetermined position, and the imagepickup areas on the image pickup element on the image pickup area at thesecond and third predetermined positions with the positions in the Xdirection associated with each other. In FIG. 8, the upper areaencompassed by the solid lines indicates the image pickup area of theimage pickup element 1 at the normal position. The upper areaencompassed by the dotted lines indicates the image pickup area of theimage pickup element 1 at the first predetermined position. The lowerarea encompassed by the solid lines indicates the image pickup area ofthe image pickup element 1 at the second predetermined position. Thelower area encompassed by the dotted lines indicates the image pickuparea of the image pickup element 1 at the third predetermined position.

The defective pixel Q1 on the image pickup element at the normalposition is moved to the defective pixel Q3 on the image pickup elementat the first predetermined position by the movement of the image pickupelement 1 to the first predetermined position, to the defective pixel Q2on the image pickup element at the second predetermined position by themovement of the image pickup element 1 to the second predeterminedposition, and to the defective pixel Q4 on the image pickup element atthe third predetermined position by the movement of the image pickupelement 1 to the third predetermined position. The pixel P1 on the imagepickup element at the normal position is moved to the pixel P3 on theimage pickup element at the first predetermined position by the movementof the image pickup element 1 to the first predetermined position, andthe pixel P2 on the image pickup element at the second predeterminedposition is moved to the pixel P4 on the image pickup element at thethird predetermined position by the movement of the image pickup element1 to the third predetermined position.

Based on the position relationship, the image data of the target to beobtained by the defective pixel Q1 can be obtained by the pixel P2 onthe image pickup element at the second predetermined position, the imagedata of the target to be obtained by the defective pixel Q3 can beobtained by the pixel P4 on the image pickup element at the thirdpredetermined position, the image data of the target to be obtained bythe defective pixel Q2 can be obtained by the pixel P1 on the imagepickup element at the normal position, and the image data of the targetto be obtained by the defective pixel Q4 can be obtained by the pixel P3on the image pickup element at the first predetermined position.

First, in this operation, as in the embodiment 1, the influence of adefective pixel on an image can be eliminated by complementing the imagedata of the defective pixel found in the image using the image data ofthe corresponding pixel of the image acquired at another position, andan image of high resolution can be obtained by combining thecomplemented images. In more detail, the complemented image at thenormal position is combined with the complemented image at the firstpredetermined position with the positions of a target matching eachother to form an image of high resolution. Similarly, the complementedimage at the second predetermined position is combined with thecomplemented image at the third predetermined position with thepositions of a target matching each other to form an image of highresolution.

Next, by referring to the flowcharts shown in FIGS. 9 and 10, theoperation performed during shooting moving pictures is explained belowin detail. In the explanation, for convenience, the image obtained inthe image pickup area of the image pickup element 1 at the normalposition is defined as an image A, the image obtained in the imagepickup area of the image pickup element 1 at the first predeterminedposition is defined as an image C, the image obtained in the imagepickup area of the image pickup element 1 at the second position isdefined as an image B, and the image obtained in the image pickup areaof the image pickup element 1 at the third position is defined as animage D,

First, by referring to FIG. 9, the image acquiring process performed inthis operation is explained below in detail.

As shown in FIG. 9, when the shooting process is started in thisoperation, the CPU 8 transmits a drive timing signal to the image pickupelement 1 and the image pickup element drive unit 7, and starts thecontrol of image acquisition at the following predetermined frame rate.

First, the image A is acquired, the acquired image data is stored in thecache memory 3, and then the image pickup element 1 is moved to thefirst predetermined position, the image C is acquired, the acquiredimage data is stored in the cache memory 3 (S21).

Then, the image pickup element 1 is moved to the second predeterminedposition (S22), the image B is acquired, the acquired image data isstored in the cache memory 3, and then the image pickup element 1 ismoved to the third predetermined position, the image D is acquired, theacquired image data is stored in the cache memory 3 (S23).

Next, the image pickup element 1 is moved to the normal position (S24).

Then, it is determined whether or not the CPU 8 has accepted an imageacquisition termination request from the operation unit 10 (S25). If thedetermination result is YES, it is determined that the image acquisitionhas terminated, thereby terminating the image acquiring process.

When the determination in S25 is NO, the image acquisition is continued,the same processes as in S21 and S22 are performed in S26 and S27. InS28, the process similar to that in S25 is performed. When thedetermination in S28 is NO, control is returned to S23. If it is YES,the image acquiring process is terminated.

Thus, in this operation, the image acquisition is sequentially repeatedby the image pickup element 1 at the normal position, the firstpredetermined position, the second predetermined position, and the thirdpredetermined position until the image acquisition termination requestis accepted.

Then, by referring to FIG. 10, the image processing performed in thisoperation is explained in detail.

As shown in FIG. 10, when the image data of the images A and C arestored in the cache memory 3 in the process in S21 shown in FIG. 9, thedata extraction unit 4 a acquires the image data of the images A and Cfrom the cache memory 3 (S31), and a moving picture regeneration area isextracted from each of the image data of the images A and C (S32).

Then, the data extraction unit 4 a acquires from the cache memory 3 theimage data (for example, the image data of the images B and D stored inthe cache memory 3 in the process in S23 shown in FIG. 9) of the imagesB and D stored in the cache memory 3 after the image data of the imagesA and C acquired in S31 (S33).

Next, a moving picture regeneration area is similarly extracted from theimage data of the images B and D (S34), and the image data of thecorresponding pixel (refer to pixels P2 and P4 shown in FIG. 8) of theimages B and D acquired in S33 is extracted as the complement data ofthe defective pixel position (refer to the defective pixels Q1 and Q3shown in FIG. 8) of the images A and C extracted in S32 by referring tothe position data of the pixel defect stored in the defective positionstorage unit 4 b (S36). After S36, the defect correction unit 4 ccorrects the defect of the images A and C by complementing the imagedata of the defective pixel of the images A and C extracted in S32 usingthe complement data extracted in S36 (S37). Then, the image compositionunit 4 d combines the corrected images A and C (S38). The formedcomposite image is transferred to the memory 5.

On the other hand, the data extraction unit 4 a separately continues theprocess. After S34, the data extraction unit 4 a acquires from the cachememory 3 the image data of the images A and C stored in the cache memory3 after the image data of the images B and D acquired in S33 (S35).Then, the image data of the corresponding pixel (refer to pixels P1 andP3 shown in FIG. 8) of the images A and C acquired in S35 is extractedas the complement data of the defective pixel position (refer to thedefective pixels Q2 and Q4 shown in FIG. 8) of the images B and Dextracted in S34 by referring to the position data of the pixel defectstored in the defective position storage unit 4 b (S39). After S39, thedefect correction unit 4 c corrects the defect of the images B and D bycomplementing the image data of the defective pixel of the images B andD extracted in S34 using the complement data extracted in S39 (S40).Then, the image composition unit 4 d combines the corrected images B andD (S41). The formed composite image is transferred to the memory 5.

The process by the data extraction unit 4 a is separately continued.After S35, control is returned to S32, and the above-mentioned processesare repeated until there is no image data acquired from the cache memory9 in S33 or S35. Thus, the composite image of the corrected images A andC and the composite image of the corrected images B and D arealternately and continuously transferred to the memory 5, and the movingpictures are formed.

Thus, by performing the image processing, a generated pixel defect canbe corrected in the method similar to the embodiment 1 on the compositeimage (the composite image of the images A and C and the composite imageof the images B and D) attained high resolution by shifting a pixel.Thus, in this case, moving pictures appropriately complemented a pixeldefect can be formed with the frame rate maintained.

As described above, according to the present embodiment, when shootingmoving pictures while attaining high resolution by shifting a pixel, animage can be acquired with a small influence of a pixel defect.

In the present embodiment, the method of shifting a pixel for combiningtwo images is applied, but other pixel shifting methods of combiningfour or nine images etc. can also be applied.

Embodiments 3

The present embodiment has a further function of optimally determiningthe image pickup element drive direction (image pickup element movingdirection) for correcting a defect in addition to the functions of theembodiments 1 and 2.

FIGS. 11 through 13 are used in explaining the present embodiment.

FIG. 11 is a block diagram of the basic configuration of the imagepickup apparatus according to the present embodiment. FIGS. 12 and 13are flowcharts of the process of determining the optimum drive directionof the image pickup element.

First, by referring to FIG. 11, the main configuration of the imagepickup apparatus according to the present embodiment is explained. InFIG. 11, the same component shown in FIG. 1 is assigned the samereference numeral.

As shown in FIG. 11, the different point from the configuration of theimage pickup apparatus shown in FIG. 1 is that an adjacent defectcalculation unit 11 and a drive direction determination unit 12 arenewly added. The adjacent defect calculation unit 11 counts the numberof defective pixels (number of adjacent defective pixel) adjacent toeach defective pixel from the position data of the pixel defect storedin the defective position storage unit 4 b. The drive directiondetermination unit 12 compares the number of adjacent pixel defectsobtained by the adjacent defect calculation unit 11, and determines thedrive direction in which the image pickup element 1 is moved to correcta defect in the direction of minimizing the number of adjacent pixeldefects. The determined drive direction is the direction when the imagepickup element 1 is driven from the normal position. For example, thedirection in the case of the embodiment 1 is to drive the image pickupelement 1 from the normal position to the predetermined position, andthe direction in the case of the embodiment 2 is to drive the imagepickup element 1 from the normal position to the second predeterminedposition.

The process of counting the number of adjacent pixel defects by theadjacent defect calculation unit 11 is explained in detail by referringto the flowchart shown in FIG. 12.

As shown in FIG. 12, when the search for an adjacent pixel defect isstarted by the adjacent defect calculation unit 11, the position data(comparison-source defect coordinates) of one pixel defect is extractedfrom the position data {A1˜An} of n pixel defects stored in thedefective position storage unit 4 b (S51). For example, assume that A1(a, b) has been extracted as the comparison-source defect coordinates.

Then, the coordinates of A1 are shifted in the direction of searching anadjacent pixel defect (S52). For example, assume that it is one pixelshifted in the +X direction, the shifted coordinates are A1′ (a+1, b).

Then, the position data {A1˜An} of all pixel defects stored in thedefective position storage unit 4 b are compared with the A1′ (S53), andit is determined whether or not there is the position data matching A1′(S54). If there is the position data matching A1′ (YES in S54), thenumber N of adjacent pixel defects is increased by one (S55), andcontrol is passed to S56. N is cleared before starting the process ofthis flowchart (N=0). If there is no position data matching A1′ (NO inS54), control is passed to S56 as is.

In S56, it is determined whether or not a comparison has made on theposition data {A1˜An} of all pixel defects as the comparison-sourcedefect coordinates. If the comparison has not been made (NO in S56),control is returned to S51, and the processes in S51 through S56 aresimilarly repeated on one (for example, A2) of the position data of theremaining pixel defects not extracted as the comparison-source defectcoordinates. Thus, when the process terminates on the position data {A1through An} of all pixel defects as the comparison-source defectcoordinates (YES in S56), the number N of adjacent pixel defects isoutput at this time.

In the above-mentioned process, the number N of adjacent pixel defectscan be obtained in the direction of searching for an adjacent pixeldefect.

Next, the process of determining the optimum drive direction of theimage pickup element 1 by the drive direction determination unit 12 isexplained in detail using the flowchart shown in FIG. 13. The flowchartshown in FIG. 13 shows the case in which this process is performed atthe calibration of a camera.

As shown in FIG. 13, when the calibration of a camera is started, thepixel defect of the image pickup element 1 is detected (S61), and theposition data of the pixel defect is stored in the defective positionstorage unit 4 b.

Then, the search for an adjacent pixel defect is started (S62).

First, the process shown in FIG. 12 is performed with the direction ofsearching for an adjacent pixel defect and the amount of shift of thecoordinates in S52 defined as +X direction by one pixel (X+1). Thenumber N of adjacent pixel defects in this case is acquired as Def 1(S63). Then, it is determined whether or not Def 1=0 (S64). If Def 1=0(YES in S64), the drive direction of the image pickup element 1 for adefect correction and the amount of drive are determined as +X directionby one pixel (S65).

If Def 1≠0 (NO in S64), then the process shown in FIG. 12 is performedwith the direction of searching for an adjacent pixel defect and theamount of shift of the coordinates in S52 defined as −X direction by onepixel (X−1), and the number N of adjacent pixel defects is acquired asDef 2 (S66). Then, it is determined whether or not Def 2=0 (S67). If Def2=0 (YES in S67), then the drive direction of the image pickup element 1and the amount of drive are determined as −X direction by one pixel(S68).

If Def 2≠0 (NO in S67), then the process shown in FIG. 12 is performedwith the direction of searching for an adjacent pixel defect and theamount of shift of the coordinates in S52 defined as +Y direction by onepixel (Y+1), and the number N of adjacent pixel defects is acquired asDef 3 (S69). Then, it is determined whether or not Def 3=0 (S70). If Def3=0 (YES in S70), then the drive direction of the image pickup element 1and the amount of drive are determined as +Y direction by one pixel(S71).

If Def 3≠0 (NO in S70), then the process shown in FIG. 12 is performedwith the direction of searching for an adjacent pixel defect and theamount of shift of the coordinates in S52 defined as −Y direction by onepixel (Y−1), and the number N of adjacent pixel defects is acquired asDef 4 (S72). Then, it is determined whether or not Def 4=0 (S73). If Def4=0 (YES in S73), then the drive direction of the image pickup element 1and the amount of drive are determined as −Y direction by one pixel(S74).

If Def 4≠0 (NO in S73), then the process shown in FIG. 12 is performedwith the direction of searching for an adjacent pixel defect and theamount of shift of the coordinates in

S52 defined as +X direction by one pixel and +Y direction by one pixel(X+1, Y+1), and the number N of adjacent pixel defects is acquired asDef 5 (S75). Then, it is determined whether or not Def 5=0 (S76). If Def5=0 (YES in S76), then the drive direction of the image pickup element 1and the amount of drive are determined as +X direction by one pixel and+Y direction by one pixel (S77).

If Def 5≠0 (NO in S76), then the process shown in FIG. 12 is performedwith the direction of searching for an adjacent pixel defect and theamount of shift of the coordinates in S52 defined as −X direction by onepixel and +Y direction by one pixel (X−1, Y+1), and the number N ofadjacent pixel defects is acquired as Def 6 (S78). Then, it isdetermined whether or not Def 6=0 (S79). If Def 6=0 (YES in S79), thenthe drive direction of the image pickup element 1 and the amount ofdrive are determined as −X direction by one pixel and +Y direction byone pixel (S80).

If Def 6≠0 (NO in S79), then the process shown in FIG. 12 is performedwith the direction of searching for an adjacent pixel defect and theamount of shift of the coordinates in S52 defined as +X direction by onepixel and −Y direction by one pixel (X+1, Y−1), and the number N ofadjacent pixel defects is acquired as Def 7 (S81). Then, it isdetermined whether or not Def 7=0 (S82). If Def 7=0 (YES in S82), thenthe drive direction of the image pickup element 1 and the amount ofdrive are determined as +X direction by one pixel and −Y direction byone pixel (S83).

If Def 7≠0 (NO in S82), then the process shown in FIG. 12 is performedwith the direction of searching for an adjacent pixel defect and theamount of shift of the coordinates in S52 defined as −X direction by onepixel and −Y direction by one pixel (X−1, Y−1), and the number N ofadjacent pixel defects is acquired as Def 8 (S84). Then, it isdetermined whether or not Def 8=0 (S85). If Def 8=0 (YES in S85), thenthe drive direction of the image pickup element 1 and the amount ofdrive are determined as −X direction by one pixel and −Y direction byone pixel (S86).

If Def 8≠0 (NO in S85), then the minimum value of Def 1 through 8 isobtained (S87). When the minimum value is obtained, the direction ofsearching for the adjacent pixel defect and the amount of shift of thecoordinates are determined as the drive direction of the image pickupelement 1 and the amount of drive (S88).

In this process, the drive direction of the image pickup element forcorrecting a defect can be optimally determined.

This process is performed at the calibration of a camera, at theinitialization when a camera is shipped at the factory, etc., and theoperation performed during shooting moving pictures is the same as inthe embodiments 1 and 2.

As described above, according to the present embodiment, the drivedirection of an image pickup element can be determined in the directionof no or minimum overlap of a pixel defect independent of an occurrencepattern of a pixel defect. Therefore, the remaining defect after acorrection can be minimized without receiving an influence of thevariance of the image pickup element.

In the present embodiment, the searching direction when the drivedirection of the image pickup element is determined has been determinedas right (X+1), left (X−1), down (Y+1), up (Y−1), lower right (X+1,Y+1), lower left (X−1, Y+1), upper right (X+1, Y−1), upper left (X−1,Y−1). However, the present invention is not limited to theseapplications. For example, considering the reduction of the processingtime, four directions (up, down, left, and right) can be defined.Furthermore, the amount of shift of the coordinates is not limited toone pixel, but two or more pixels can be defined. The amount of shift ofthe coordinates is not limited to one pixel, but a combination of, forexample, one and two pixels, etc. can be set. In this case, in additionto the drive direction of the image pickup element, the amount of drive(amount of shift) of the image pickup element can be determined from themutual position relationship of defective pixels.

The present invention is described above in detail, but it is notlimited to the above-mentioned embodiments, but can be improved andvaried within the scope of the gist of the present invention.

As described above, according to the present invention, when movingpictures are taken using an image pickup element having a pixel defect,images having very small influence of the pixel defect can be acquiredwith the frame rate maintained. Therefore, the optimum moving pictureswith both appropriate frame rate and image quality maintained withoutenhancing the production quality of the image pickup element.Furthermore, a user can be provided with an excellent image pickupapparatus in both cost and quality of pictures.

Also when moving pictures are taken with higher resolution by shiftingpixels, high-resolution images having a very small influence of a pixeldefect can be acquired.

Additionally, regardless of the variance in pixel defect generated in animage pickup element, an image pickup apparatus can be provided withminimized pixel defects in images, thereby steadily providing excellentimages for users.

1. An image pickup apparatus, comprising: an image pickup element havinga plurality of pixels; a drive unit moving the image pickup element; adefective position storage unit storing position data on the imagepickup element about a defective pixel contained in the plurality ofpixels; an image extraction unit extracting a moving pictureregeneration area depending on a position of the image pickup elementduring capturing an image from a captured image obtained by the imagepickup element; and a defect correction unit complementing a defectivepixel of a captured image obtained by the image pickup element usingimage data of captured image obtained by the image pickup element inanother position, wherein moving pictures are formed by continuouslyoutputting captured images in the moving picture regeneration area forwhich the defect correction unit has complemented the defective pixel,and wherein a moving direction of the image pickup element for thecomplement is determined from mutual position relationship of adefective pixel contained in the plurality of pixels.
 2. The apparatusaccording to claim 1, wherein an amount of movement of the image pickupelement for the complement is determined from the mutual positionrelationship of the defective pixel contained in the plurality ofpixels.
 3. A computer-readable recording medium storing an image pickupprogram used to direct a computer of an image pickup apparatus torealize: a driving function for moving an image pickup elementcomprising a plurality of pixels; an image extracting function ofextracting a moving picture regeneration area depending on a position ofthe image pickup element during capturing an image from a captured imageobtained by the image pickup element; a defect correcting function ofcomplementing a defective pixel of a captured image obtained by theimage pickup element using image data of captured image obtained by theimage pickup element in another position based on position data on theimage pickup element about a defective pixel contained in the pluralityof pixels and stored in a defective position storage unit; and afunction of forming moving pictures by continuously outputting capturedimages in the moving picture regeneration area for which the defectivepixel has been complemented by the defect correcting function, wherein amoving direction of the image pickup element for the complement isdetermined from mutual position relationship of a defective pixelcontained in the plurality of pixels.
 4. The medium according to claim3, wherein an amount of movement of the image pickup element for thecomplement is determined from the mutual position relationship of thedefective pixel contained in the plurality of pixels.
 5. A method forforming moving pictures of an image pickup apparatus constituted to movean image pickup element including a plurality of pixels by continuouslyperforming: extracting a moving picture regeneration area depending on aposition of the image pickup element during capturing an image from acaptured image obtained by the image pickup element; complementing adefective pixel in the extracted moving picture regeneration area usingimage data of a captured image acquired by the image pickup element in aposition other than a position of the image pickup element; andoutputting the captured image in the moving picture regeneration area inwhich the defective pixel has been complemented, wherein a movingdirection of the image pickup element for the complement is determinedfrom mutual position relationship of a defective pixel contained in theplurality of pixels.
 6. The method according to claim 5, wherein anamount of movement of the image pickup element for the complement isdetermined from the mutual position relationship of the defective pixelcontained in the plurality of pixels.